<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <zth :prop-a="666" prop-b="test" :prop-c="true" 
      :prop-d="444" :prop-e="[555]" prop-f="12"></zth>
  </div>
  <script src="../js/vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: function() {
        return {
          
        }
      },
      components: {
        zth: {
          template: 
          `
            <div>
              <p>propA:{{propA}}</p>
              <p>propB:{{propB}}</p>
              <p>propC:{{propC}}</p>
              <p>propD:{{propD}}</p>
              <p>propE:{{propE}}</p>
              <p>propF:{{propF}}</p>
            </div>
          `,
          props: {
            propA: Number,
            propB: [Number, String],
            propC: {
              type: Boolean,
              default: false
            },
            propD: {
              type: Number,
              required: true
            },
            propE: {
              type: Array,
              default: function() {
                return [666,777]
              }
            },
            propF: {
              validator: function(val) {
                return val<10
              }
            }
          }
        }
      }
    })
  </script>
</body>
</html>